Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPaymentRequest.idl
3 : */
4 :
5 : #ifndef __gen_nsIPaymentRequest_h__
6 : #define __gen_nsIPaymentRequest_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIVariant_h__
14 : #include "nsIVariant.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 : class nsIArray; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIPaymentMethodData */
25 : #define NS_IPAYMENTMETHODDATA_IID_STR "2fe296cc-d917-4820-b492-aa42df23f9b4"
26 :
27 : #define NS_IPAYMENTMETHODDATA_IID \
28 : {0x2fe296cc, 0xd917, 0x4820, \
29 : { 0xb4, 0x92, 0xaa, 0x42, 0xdf, 0x23, 0xf9, 0xb4 }}
30 :
31 0 : class NS_NO_VTABLE nsIPaymentMethodData : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTMETHODDATA_IID)
35 :
36 : /* readonly attribute AString supportedMethods; */
37 : NS_IMETHOD GetSupportedMethods(nsAString & aSupportedMethods) = 0;
38 :
39 : /* readonly attribute AString data; */
40 : NS_IMETHOD GetData(nsAString & aData) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentMethodData, NS_IPAYMENTMETHODDATA_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSIPAYMENTMETHODDATA \
48 : NS_IMETHOD GetSupportedMethods(nsAString & aSupportedMethods) override; \
49 : NS_IMETHOD GetData(nsAString & aData) override;
50 :
51 : /* Use this macro when declaring the members of this interface when the
52 : class doesn't implement the interface. This is useful for forwarding. */
53 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTMETHODDATA \
54 : nsresult GetSupportedMethods(nsAString & aSupportedMethods); \
55 : nsresult GetData(nsAString & aData);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSIPAYMENTMETHODDATA(_to) \
59 : NS_IMETHOD GetSupportedMethods(nsAString & aSupportedMethods) override { return _to GetSupportedMethods(aSupportedMethods); } \
60 : NS_IMETHOD GetData(nsAString & aData) override { return _to GetData(aData); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSIPAYMENTMETHODDATA(_to) \
64 : NS_IMETHOD GetSupportedMethods(nsAString & aSupportedMethods) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportedMethods(aSupportedMethods); } \
65 : NS_IMETHOD GetData(nsAString & aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsPaymentMethodData : public nsIPaymentMethodData
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSIPAYMENTMETHODDATA
76 :
77 : nsPaymentMethodData();
78 :
79 : private:
80 : ~nsPaymentMethodData();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS(nsPaymentMethodData, nsIPaymentMethodData)
88 :
89 : nsPaymentMethodData::nsPaymentMethodData()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsPaymentMethodData::~nsPaymentMethodData()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* readonly attribute AString supportedMethods; */
100 : NS_IMETHODIMP nsPaymentMethodData::GetSupportedMethods(nsAString & aSupportedMethods)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* readonly attribute AString data; */
106 : NS_IMETHODIMP nsPaymentMethodData::GetData(nsAString & aData)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* End of implementation class template. */
112 : #endif
113 :
114 :
115 : /* starting interface: nsIPaymentCurrencyAmount */
116 : #define NS_IPAYMENTCURRENCYAMOUNT_IID_STR "d22a6f5f-767b-4fea-bf92-68b0b8003eba"
117 :
118 : #define NS_IPAYMENTCURRENCYAMOUNT_IID \
119 : {0xd22a6f5f, 0x767b, 0x4fea, \
120 : { 0xbf, 0x92, 0x68, 0xb0, 0xb8, 0x00, 0x3e, 0xba }}
121 :
122 0 : class NS_NO_VTABLE nsIPaymentCurrencyAmount : public nsISupports {
123 : public:
124 :
125 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTCURRENCYAMOUNT_IID)
126 :
127 : /* readonly attribute AString currency; */
128 : NS_IMETHOD GetCurrency(nsAString & aCurrency) = 0;
129 :
130 : /* readonly attribute AString value; */
131 : NS_IMETHOD GetValue(nsAString & aValue) = 0;
132 :
133 : };
134 :
135 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentCurrencyAmount, NS_IPAYMENTCURRENCYAMOUNT_IID)
136 :
137 : /* Use this macro when declaring classes that implement this interface. */
138 : #define NS_DECL_NSIPAYMENTCURRENCYAMOUNT \
139 : NS_IMETHOD GetCurrency(nsAString & aCurrency) override; \
140 : NS_IMETHOD GetValue(nsAString & aValue) override;
141 :
142 : /* Use this macro when declaring the members of this interface when the
143 : class doesn't implement the interface. This is useful for forwarding. */
144 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTCURRENCYAMOUNT \
145 : nsresult GetCurrency(nsAString & aCurrency); \
146 : nsresult GetValue(nsAString & aValue);
147 :
148 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
149 : #define NS_FORWARD_NSIPAYMENTCURRENCYAMOUNT(_to) \
150 : NS_IMETHOD GetCurrency(nsAString & aCurrency) override { return _to GetCurrency(aCurrency); } \
151 : NS_IMETHOD GetValue(nsAString & aValue) override { return _to GetValue(aValue); }
152 :
153 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
154 : #define NS_FORWARD_SAFE_NSIPAYMENTCURRENCYAMOUNT(_to) \
155 : NS_IMETHOD GetCurrency(nsAString & aCurrency) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrency(aCurrency); } \
156 : NS_IMETHOD GetValue(nsAString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); }
157 :
158 : #if 0
159 : /* Use the code below as a template for the implementation class for this interface. */
160 :
161 : /* Header file */
162 : class nsPaymentCurrencyAmount : public nsIPaymentCurrencyAmount
163 : {
164 : public:
165 : NS_DECL_ISUPPORTS
166 : NS_DECL_NSIPAYMENTCURRENCYAMOUNT
167 :
168 : nsPaymentCurrencyAmount();
169 :
170 : private:
171 : ~nsPaymentCurrencyAmount();
172 :
173 : protected:
174 : /* additional members */
175 : };
176 :
177 : /* Implementation file */
178 : NS_IMPL_ISUPPORTS(nsPaymentCurrencyAmount, nsIPaymentCurrencyAmount)
179 :
180 : nsPaymentCurrencyAmount::nsPaymentCurrencyAmount()
181 : {
182 : /* member initializers and constructor code */
183 : }
184 :
185 : nsPaymentCurrencyAmount::~nsPaymentCurrencyAmount()
186 : {
187 : /* destructor code */
188 : }
189 :
190 : /* readonly attribute AString currency; */
191 : NS_IMETHODIMP nsPaymentCurrencyAmount::GetCurrency(nsAString & aCurrency)
192 : {
193 : return NS_ERROR_NOT_IMPLEMENTED;
194 : }
195 :
196 : /* readonly attribute AString value; */
197 : NS_IMETHODIMP nsPaymentCurrencyAmount::GetValue(nsAString & aValue)
198 : {
199 : return NS_ERROR_NOT_IMPLEMENTED;
200 : }
201 :
202 : /* End of implementation class template. */
203 : #endif
204 :
205 :
206 : /* starting interface: nsIPaymentItem */
207 : #define NS_IPAYMENTITEM_IID_STR "4f78a59f-b5ff-4fb5-ab48-3b37d0101b02"
208 :
209 : #define NS_IPAYMENTITEM_IID \
210 : {0x4f78a59f, 0xb5ff, 0x4fb5, \
211 : { 0xab, 0x48, 0x3b, 0x37, 0xd0, 0x10, 0x1b, 0x02 }}
212 :
213 0 : class NS_NO_VTABLE nsIPaymentItem : public nsISupports {
214 : public:
215 :
216 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTITEM_IID)
217 :
218 : /* readonly attribute AString label; */
219 : NS_IMETHOD GetLabel(nsAString & aLabel) = 0;
220 :
221 : /* readonly attribute nsIPaymentCurrencyAmount amount; */
222 : NS_IMETHOD GetAmount(nsIPaymentCurrencyAmount * *aAmount) = 0;
223 :
224 : /* readonly attribute boolean pending; */
225 : NS_IMETHOD GetPending(bool *aPending) = 0;
226 :
227 : };
228 :
229 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentItem, NS_IPAYMENTITEM_IID)
230 :
231 : /* Use this macro when declaring classes that implement this interface. */
232 : #define NS_DECL_NSIPAYMENTITEM \
233 : NS_IMETHOD GetLabel(nsAString & aLabel) override; \
234 : NS_IMETHOD GetAmount(nsIPaymentCurrencyAmount * *aAmount) override; \
235 : NS_IMETHOD GetPending(bool *aPending) override;
236 :
237 : /* Use this macro when declaring the members of this interface when the
238 : class doesn't implement the interface. This is useful for forwarding. */
239 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTITEM \
240 : nsresult GetLabel(nsAString & aLabel); \
241 : nsresult GetAmount(nsIPaymentCurrencyAmount * *aAmount); \
242 : nsresult GetPending(bool *aPending);
243 :
244 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
245 : #define NS_FORWARD_NSIPAYMENTITEM(_to) \
246 : NS_IMETHOD GetLabel(nsAString & aLabel) override { return _to GetLabel(aLabel); } \
247 : NS_IMETHOD GetAmount(nsIPaymentCurrencyAmount * *aAmount) override { return _to GetAmount(aAmount); } \
248 : NS_IMETHOD GetPending(bool *aPending) override { return _to GetPending(aPending); }
249 :
250 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
251 : #define NS_FORWARD_SAFE_NSIPAYMENTITEM(_to) \
252 : NS_IMETHOD GetLabel(nsAString & aLabel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLabel(aLabel); } \
253 : NS_IMETHOD GetAmount(nsIPaymentCurrencyAmount * *aAmount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAmount(aAmount); } \
254 : NS_IMETHOD GetPending(bool *aPending) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPending(aPending); }
255 :
256 : #if 0
257 : /* Use the code below as a template for the implementation class for this interface. */
258 :
259 : /* Header file */
260 : class nsPaymentItem : public nsIPaymentItem
261 : {
262 : public:
263 : NS_DECL_ISUPPORTS
264 : NS_DECL_NSIPAYMENTITEM
265 :
266 : nsPaymentItem();
267 :
268 : private:
269 : ~nsPaymentItem();
270 :
271 : protected:
272 : /* additional members */
273 : };
274 :
275 : /* Implementation file */
276 : NS_IMPL_ISUPPORTS(nsPaymentItem, nsIPaymentItem)
277 :
278 : nsPaymentItem::nsPaymentItem()
279 : {
280 : /* member initializers and constructor code */
281 : }
282 :
283 : nsPaymentItem::~nsPaymentItem()
284 : {
285 : /* destructor code */
286 : }
287 :
288 : /* readonly attribute AString label; */
289 : NS_IMETHODIMP nsPaymentItem::GetLabel(nsAString & aLabel)
290 : {
291 : return NS_ERROR_NOT_IMPLEMENTED;
292 : }
293 :
294 : /* readonly attribute nsIPaymentCurrencyAmount amount; */
295 : NS_IMETHODIMP nsPaymentItem::GetAmount(nsIPaymentCurrencyAmount * *aAmount)
296 : {
297 : return NS_ERROR_NOT_IMPLEMENTED;
298 : }
299 :
300 : /* readonly attribute boolean pending; */
301 : NS_IMETHODIMP nsPaymentItem::GetPending(bool *aPending)
302 : {
303 : return NS_ERROR_NOT_IMPLEMENTED;
304 : }
305 :
306 : /* End of implementation class template. */
307 : #endif
308 :
309 :
310 : /* starting interface: nsIPaymentDetailsModifier */
311 : #define NS_IPAYMENTDETAILSMODIFIER_IID_STR "74259861-c318-40e8-b3d5-518e701bed80"
312 :
313 : #define NS_IPAYMENTDETAILSMODIFIER_IID \
314 : {0x74259861, 0xc318, 0x40e8, \
315 : { 0xb3, 0xd5, 0x51, 0x8e, 0x70, 0x1b, 0xed, 0x80 }}
316 :
317 0 : class NS_NO_VTABLE nsIPaymentDetailsModifier : public nsISupports {
318 : public:
319 :
320 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTDETAILSMODIFIER_IID)
321 :
322 : /* readonly attribute AString supportedMethods; */
323 : NS_IMETHOD GetSupportedMethods(nsAString & aSupportedMethods) = 0;
324 :
325 : /* readonly attribute nsIPaymentItem total; */
326 : NS_IMETHOD GetTotal(nsIPaymentItem * *aTotal) = 0;
327 :
328 : /* readonly attribute nsIArray additionalDisplayItems; */
329 : NS_IMETHOD GetAdditionalDisplayItems(nsIArray * *aAdditionalDisplayItems) = 0;
330 :
331 : /* readonly attribute AString data; */
332 : NS_IMETHOD GetData(nsAString & aData) = 0;
333 :
334 : };
335 :
336 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentDetailsModifier, NS_IPAYMENTDETAILSMODIFIER_IID)
337 :
338 : /* Use this macro when declaring classes that implement this interface. */
339 : #define NS_DECL_NSIPAYMENTDETAILSMODIFIER \
340 : NS_IMETHOD GetSupportedMethods(nsAString & aSupportedMethods) override; \
341 : NS_IMETHOD GetTotal(nsIPaymentItem * *aTotal) override; \
342 : NS_IMETHOD GetAdditionalDisplayItems(nsIArray * *aAdditionalDisplayItems) override; \
343 : NS_IMETHOD GetData(nsAString & aData) override;
344 :
345 : /* Use this macro when declaring the members of this interface when the
346 : class doesn't implement the interface. This is useful for forwarding. */
347 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTDETAILSMODIFIER \
348 : nsresult GetSupportedMethods(nsAString & aSupportedMethods); \
349 : nsresult GetTotal(nsIPaymentItem * *aTotal); \
350 : nsresult GetAdditionalDisplayItems(nsIArray * *aAdditionalDisplayItems); \
351 : nsresult GetData(nsAString & aData);
352 :
353 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
354 : #define NS_FORWARD_NSIPAYMENTDETAILSMODIFIER(_to) \
355 : NS_IMETHOD GetSupportedMethods(nsAString & aSupportedMethods) override { return _to GetSupportedMethods(aSupportedMethods); } \
356 : NS_IMETHOD GetTotal(nsIPaymentItem * *aTotal) override { return _to GetTotal(aTotal); } \
357 : NS_IMETHOD GetAdditionalDisplayItems(nsIArray * *aAdditionalDisplayItems) override { return _to GetAdditionalDisplayItems(aAdditionalDisplayItems); } \
358 : NS_IMETHOD GetData(nsAString & aData) override { return _to GetData(aData); }
359 :
360 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
361 : #define NS_FORWARD_SAFE_NSIPAYMENTDETAILSMODIFIER(_to) \
362 : NS_IMETHOD GetSupportedMethods(nsAString & aSupportedMethods) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportedMethods(aSupportedMethods); } \
363 : NS_IMETHOD GetTotal(nsIPaymentItem * *aTotal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotal(aTotal); } \
364 : NS_IMETHOD GetAdditionalDisplayItems(nsIArray * *aAdditionalDisplayItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdditionalDisplayItems(aAdditionalDisplayItems); } \
365 : NS_IMETHOD GetData(nsAString & aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); }
366 :
367 : #if 0
368 : /* Use the code below as a template for the implementation class for this interface. */
369 :
370 : /* Header file */
371 : class nsPaymentDetailsModifier : public nsIPaymentDetailsModifier
372 : {
373 : public:
374 : NS_DECL_ISUPPORTS
375 : NS_DECL_NSIPAYMENTDETAILSMODIFIER
376 :
377 : nsPaymentDetailsModifier();
378 :
379 : private:
380 : ~nsPaymentDetailsModifier();
381 :
382 : protected:
383 : /* additional members */
384 : };
385 :
386 : /* Implementation file */
387 : NS_IMPL_ISUPPORTS(nsPaymentDetailsModifier, nsIPaymentDetailsModifier)
388 :
389 : nsPaymentDetailsModifier::nsPaymentDetailsModifier()
390 : {
391 : /* member initializers and constructor code */
392 : }
393 :
394 : nsPaymentDetailsModifier::~nsPaymentDetailsModifier()
395 : {
396 : /* destructor code */
397 : }
398 :
399 : /* readonly attribute AString supportedMethods; */
400 : NS_IMETHODIMP nsPaymentDetailsModifier::GetSupportedMethods(nsAString & aSupportedMethods)
401 : {
402 : return NS_ERROR_NOT_IMPLEMENTED;
403 : }
404 :
405 : /* readonly attribute nsIPaymentItem total; */
406 : NS_IMETHODIMP nsPaymentDetailsModifier::GetTotal(nsIPaymentItem * *aTotal)
407 : {
408 : return NS_ERROR_NOT_IMPLEMENTED;
409 : }
410 :
411 : /* readonly attribute nsIArray additionalDisplayItems; */
412 : NS_IMETHODIMP nsPaymentDetailsModifier::GetAdditionalDisplayItems(nsIArray * *aAdditionalDisplayItems)
413 : {
414 : return NS_ERROR_NOT_IMPLEMENTED;
415 : }
416 :
417 : /* readonly attribute AString data; */
418 : NS_IMETHODIMP nsPaymentDetailsModifier::GetData(nsAString & aData)
419 : {
420 : return NS_ERROR_NOT_IMPLEMENTED;
421 : }
422 :
423 : /* End of implementation class template. */
424 : #endif
425 :
426 :
427 : /* starting interface: nsIPaymentShippingOption */
428 : #define NS_IPAYMENTSHIPPINGOPTION_IID_STR "68341551-3605-4381-b936-41e830aa88fb"
429 :
430 : #define NS_IPAYMENTSHIPPINGOPTION_IID \
431 : {0x68341551, 0x3605, 0x4381, \
432 : { 0xb9, 0x36, 0x41, 0xe8, 0x30, 0xaa, 0x88, 0xfb }}
433 :
434 0 : class NS_NO_VTABLE nsIPaymentShippingOption : public nsISupports {
435 : public:
436 :
437 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTSHIPPINGOPTION_IID)
438 :
439 : /* readonly attribute AString id; */
440 : NS_IMETHOD GetId(nsAString & aId) = 0;
441 :
442 : /* readonly attribute AString label; */
443 : NS_IMETHOD GetLabel(nsAString & aLabel) = 0;
444 :
445 : /* readonly attribute nsIPaymentCurrencyAmount amount; */
446 : NS_IMETHOD GetAmount(nsIPaymentCurrencyAmount * *aAmount) = 0;
447 :
448 : /* attribute boolean selected; */
449 : NS_IMETHOD GetSelected(bool *aSelected) = 0;
450 : NS_IMETHOD SetSelected(bool aSelected) = 0;
451 :
452 : };
453 :
454 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentShippingOption, NS_IPAYMENTSHIPPINGOPTION_IID)
455 :
456 : /* Use this macro when declaring classes that implement this interface. */
457 : #define NS_DECL_NSIPAYMENTSHIPPINGOPTION \
458 : NS_IMETHOD GetId(nsAString & aId) override; \
459 : NS_IMETHOD GetLabel(nsAString & aLabel) override; \
460 : NS_IMETHOD GetAmount(nsIPaymentCurrencyAmount * *aAmount) override; \
461 : NS_IMETHOD GetSelected(bool *aSelected) override; \
462 : NS_IMETHOD SetSelected(bool aSelected) override;
463 :
464 : /* Use this macro when declaring the members of this interface when the
465 : class doesn't implement the interface. This is useful for forwarding. */
466 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTSHIPPINGOPTION \
467 : nsresult GetId(nsAString & aId); \
468 : nsresult GetLabel(nsAString & aLabel); \
469 : nsresult GetAmount(nsIPaymentCurrencyAmount * *aAmount); \
470 : nsresult GetSelected(bool *aSelected); \
471 : nsresult SetSelected(bool aSelected);
472 :
473 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
474 : #define NS_FORWARD_NSIPAYMENTSHIPPINGOPTION(_to) \
475 : NS_IMETHOD GetId(nsAString & aId) override { return _to GetId(aId); } \
476 : NS_IMETHOD GetLabel(nsAString & aLabel) override { return _to GetLabel(aLabel); } \
477 : NS_IMETHOD GetAmount(nsIPaymentCurrencyAmount * *aAmount) override { return _to GetAmount(aAmount); } \
478 : NS_IMETHOD GetSelected(bool *aSelected) override { return _to GetSelected(aSelected); } \
479 : NS_IMETHOD SetSelected(bool aSelected) override { return _to SetSelected(aSelected); }
480 :
481 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
482 : #define NS_FORWARD_SAFE_NSIPAYMENTSHIPPINGOPTION(_to) \
483 : NS_IMETHOD GetId(nsAString & aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
484 : NS_IMETHOD GetLabel(nsAString & aLabel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLabel(aLabel); } \
485 : NS_IMETHOD GetAmount(nsIPaymentCurrencyAmount * *aAmount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAmount(aAmount); } \
486 : NS_IMETHOD GetSelected(bool *aSelected) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelected(aSelected); } \
487 : NS_IMETHOD SetSelected(bool aSelected) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelected(aSelected); }
488 :
489 : #if 0
490 : /* Use the code below as a template for the implementation class for this interface. */
491 :
492 : /* Header file */
493 : class nsPaymentShippingOption : public nsIPaymentShippingOption
494 : {
495 : public:
496 : NS_DECL_ISUPPORTS
497 : NS_DECL_NSIPAYMENTSHIPPINGOPTION
498 :
499 : nsPaymentShippingOption();
500 :
501 : private:
502 : ~nsPaymentShippingOption();
503 :
504 : protected:
505 : /* additional members */
506 : };
507 :
508 : /* Implementation file */
509 : NS_IMPL_ISUPPORTS(nsPaymentShippingOption, nsIPaymentShippingOption)
510 :
511 : nsPaymentShippingOption::nsPaymentShippingOption()
512 : {
513 : /* member initializers and constructor code */
514 : }
515 :
516 : nsPaymentShippingOption::~nsPaymentShippingOption()
517 : {
518 : /* destructor code */
519 : }
520 :
521 : /* readonly attribute AString id; */
522 : NS_IMETHODIMP nsPaymentShippingOption::GetId(nsAString & aId)
523 : {
524 : return NS_ERROR_NOT_IMPLEMENTED;
525 : }
526 :
527 : /* readonly attribute AString label; */
528 : NS_IMETHODIMP nsPaymentShippingOption::GetLabel(nsAString & aLabel)
529 : {
530 : return NS_ERROR_NOT_IMPLEMENTED;
531 : }
532 :
533 : /* readonly attribute nsIPaymentCurrencyAmount amount; */
534 : NS_IMETHODIMP nsPaymentShippingOption::GetAmount(nsIPaymentCurrencyAmount * *aAmount)
535 : {
536 : return NS_ERROR_NOT_IMPLEMENTED;
537 : }
538 :
539 : /* attribute boolean selected; */
540 : NS_IMETHODIMP nsPaymentShippingOption::GetSelected(bool *aSelected)
541 : {
542 : return NS_ERROR_NOT_IMPLEMENTED;
543 : }
544 : NS_IMETHODIMP nsPaymentShippingOption::SetSelected(bool aSelected)
545 : {
546 : return NS_ERROR_NOT_IMPLEMENTED;
547 : }
548 :
549 : /* End of implementation class template. */
550 : #endif
551 :
552 :
553 : /* starting interface: nsIPaymentDetails */
554 : #define NS_IPAYMENTDETAILS_IID_STR "73a5a3f1-45b9-4605-a6e6-7aa60daa9039"
555 :
556 : #define NS_IPAYMENTDETAILS_IID \
557 : {0x73a5a3f1, 0x45b9, 0x4605, \
558 : { 0xa6, 0xe6, 0x7a, 0xa6, 0x0d, 0xaa, 0x90, 0x39 }}
559 :
560 0 : class NS_NO_VTABLE nsIPaymentDetails : public nsISupports {
561 : public:
562 :
563 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTDETAILS_IID)
564 :
565 : /* readonly attribute AString id; */
566 : NS_IMETHOD GetId(nsAString & aId) = 0;
567 :
568 : /* readonly attribute nsIPaymentItem totalItem; */
569 : NS_IMETHOD GetTotalItem(nsIPaymentItem * *aTotalItem) = 0;
570 :
571 : /* readonly attribute nsIArray displayItems; */
572 : NS_IMETHOD GetDisplayItems(nsIArray * *aDisplayItems) = 0;
573 :
574 : /* readonly attribute nsIArray shippingOptions; */
575 : NS_IMETHOD GetShippingOptions(nsIArray * *aShippingOptions) = 0;
576 :
577 : /* readonly attribute nsIArray modifiers; */
578 : NS_IMETHOD GetModifiers(nsIArray * *aModifiers) = 0;
579 :
580 : /* readonly attribute AString error; */
581 : NS_IMETHOD GetError(nsAString & aError) = 0;
582 :
583 : /* void update (in nsIPaymentDetails aDetails); */
584 : NS_IMETHOD Update(nsIPaymentDetails *aDetails) = 0;
585 :
586 : };
587 :
588 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentDetails, NS_IPAYMENTDETAILS_IID)
589 :
590 : /* Use this macro when declaring classes that implement this interface. */
591 : #define NS_DECL_NSIPAYMENTDETAILS \
592 : NS_IMETHOD GetId(nsAString & aId) override; \
593 : NS_IMETHOD GetTotalItem(nsIPaymentItem * *aTotalItem) override; \
594 : NS_IMETHOD GetDisplayItems(nsIArray * *aDisplayItems) override; \
595 : NS_IMETHOD GetShippingOptions(nsIArray * *aShippingOptions) override; \
596 : NS_IMETHOD GetModifiers(nsIArray * *aModifiers) override; \
597 : NS_IMETHOD GetError(nsAString & aError) override; \
598 : NS_IMETHOD Update(nsIPaymentDetails *aDetails) override;
599 :
600 : /* Use this macro when declaring the members of this interface when the
601 : class doesn't implement the interface. This is useful for forwarding. */
602 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTDETAILS \
603 : nsresult GetId(nsAString & aId); \
604 : nsresult GetTotalItem(nsIPaymentItem * *aTotalItem); \
605 : nsresult GetDisplayItems(nsIArray * *aDisplayItems); \
606 : nsresult GetShippingOptions(nsIArray * *aShippingOptions); \
607 : nsresult GetModifiers(nsIArray * *aModifiers); \
608 : nsresult GetError(nsAString & aError); \
609 : nsresult Update(nsIPaymentDetails *aDetails);
610 :
611 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
612 : #define NS_FORWARD_NSIPAYMENTDETAILS(_to) \
613 : NS_IMETHOD GetId(nsAString & aId) override { return _to GetId(aId); } \
614 : NS_IMETHOD GetTotalItem(nsIPaymentItem * *aTotalItem) override { return _to GetTotalItem(aTotalItem); } \
615 : NS_IMETHOD GetDisplayItems(nsIArray * *aDisplayItems) override { return _to GetDisplayItems(aDisplayItems); } \
616 : NS_IMETHOD GetShippingOptions(nsIArray * *aShippingOptions) override { return _to GetShippingOptions(aShippingOptions); } \
617 : NS_IMETHOD GetModifiers(nsIArray * *aModifiers) override { return _to GetModifiers(aModifiers); } \
618 : NS_IMETHOD GetError(nsAString & aError) override { return _to GetError(aError); } \
619 : NS_IMETHOD Update(nsIPaymentDetails *aDetails) override { return _to Update(aDetails); }
620 :
621 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
622 : #define NS_FORWARD_SAFE_NSIPAYMENTDETAILS(_to) \
623 : NS_IMETHOD GetId(nsAString & aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
624 : NS_IMETHOD GetTotalItem(nsIPaymentItem * *aTotalItem) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalItem(aTotalItem); } \
625 : NS_IMETHOD GetDisplayItems(nsIArray * *aDisplayItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayItems(aDisplayItems); } \
626 : NS_IMETHOD GetShippingOptions(nsIArray * *aShippingOptions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShippingOptions(aShippingOptions); } \
627 : NS_IMETHOD GetModifiers(nsIArray * *aModifiers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetModifiers(aModifiers); } \
628 : NS_IMETHOD GetError(nsAString & aError) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetError(aError); } \
629 : NS_IMETHOD Update(nsIPaymentDetails *aDetails) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Update(aDetails); }
630 :
631 : #if 0
632 : /* Use the code below as a template for the implementation class for this interface. */
633 :
634 : /* Header file */
635 : class nsPaymentDetails : public nsIPaymentDetails
636 : {
637 : public:
638 : NS_DECL_ISUPPORTS
639 : NS_DECL_NSIPAYMENTDETAILS
640 :
641 : nsPaymentDetails();
642 :
643 : private:
644 : ~nsPaymentDetails();
645 :
646 : protected:
647 : /* additional members */
648 : };
649 :
650 : /* Implementation file */
651 : NS_IMPL_ISUPPORTS(nsPaymentDetails, nsIPaymentDetails)
652 :
653 : nsPaymentDetails::nsPaymentDetails()
654 : {
655 : /* member initializers and constructor code */
656 : }
657 :
658 : nsPaymentDetails::~nsPaymentDetails()
659 : {
660 : /* destructor code */
661 : }
662 :
663 : /* readonly attribute AString id; */
664 : NS_IMETHODIMP nsPaymentDetails::GetId(nsAString & aId)
665 : {
666 : return NS_ERROR_NOT_IMPLEMENTED;
667 : }
668 :
669 : /* readonly attribute nsIPaymentItem totalItem; */
670 : NS_IMETHODIMP nsPaymentDetails::GetTotalItem(nsIPaymentItem * *aTotalItem)
671 : {
672 : return NS_ERROR_NOT_IMPLEMENTED;
673 : }
674 :
675 : /* readonly attribute nsIArray displayItems; */
676 : NS_IMETHODIMP nsPaymentDetails::GetDisplayItems(nsIArray * *aDisplayItems)
677 : {
678 : return NS_ERROR_NOT_IMPLEMENTED;
679 : }
680 :
681 : /* readonly attribute nsIArray shippingOptions; */
682 : NS_IMETHODIMP nsPaymentDetails::GetShippingOptions(nsIArray * *aShippingOptions)
683 : {
684 : return NS_ERROR_NOT_IMPLEMENTED;
685 : }
686 :
687 : /* readonly attribute nsIArray modifiers; */
688 : NS_IMETHODIMP nsPaymentDetails::GetModifiers(nsIArray * *aModifiers)
689 : {
690 : return NS_ERROR_NOT_IMPLEMENTED;
691 : }
692 :
693 : /* readonly attribute AString error; */
694 : NS_IMETHODIMP nsPaymentDetails::GetError(nsAString & aError)
695 : {
696 : return NS_ERROR_NOT_IMPLEMENTED;
697 : }
698 :
699 : /* void update (in nsIPaymentDetails aDetails); */
700 : NS_IMETHODIMP nsPaymentDetails::Update(nsIPaymentDetails *aDetails)
701 : {
702 : return NS_ERROR_NOT_IMPLEMENTED;
703 : }
704 :
705 : /* End of implementation class template. */
706 : #endif
707 :
708 :
709 : /* starting interface: nsIPaymentOptions */
710 : #define NS_IPAYMENTOPTIONS_IID_STR "d53f9f20-138e-47cc-9fd5-db16a3f6d301"
711 :
712 : #define NS_IPAYMENTOPTIONS_IID \
713 : {0xd53f9f20, 0x138e, 0x47cc, \
714 : { 0x9f, 0xd5, 0xdb, 0x16, 0xa3, 0xf6, 0xd3, 0x01 }}
715 :
716 0 : class NS_NO_VTABLE nsIPaymentOptions : public nsISupports {
717 : public:
718 :
719 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTOPTIONS_IID)
720 :
721 : /* readonly attribute boolean requestPayerName; */
722 : NS_IMETHOD GetRequestPayerName(bool *aRequestPayerName) = 0;
723 :
724 : /* readonly attribute boolean requestPayerEmail; */
725 : NS_IMETHOD GetRequestPayerEmail(bool *aRequestPayerEmail) = 0;
726 :
727 : /* readonly attribute boolean requestPayerPhone; */
728 : NS_IMETHOD GetRequestPayerPhone(bool *aRequestPayerPhone) = 0;
729 :
730 : /* readonly attribute boolean requestShipping; */
731 : NS_IMETHOD GetRequestShipping(bool *aRequestShipping) = 0;
732 :
733 : /* readonly attribute AString shippingType; */
734 : NS_IMETHOD GetShippingType(nsAString & aShippingType) = 0;
735 :
736 : };
737 :
738 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentOptions, NS_IPAYMENTOPTIONS_IID)
739 :
740 : /* Use this macro when declaring classes that implement this interface. */
741 : #define NS_DECL_NSIPAYMENTOPTIONS \
742 : NS_IMETHOD GetRequestPayerName(bool *aRequestPayerName) override; \
743 : NS_IMETHOD GetRequestPayerEmail(bool *aRequestPayerEmail) override; \
744 : NS_IMETHOD GetRequestPayerPhone(bool *aRequestPayerPhone) override; \
745 : NS_IMETHOD GetRequestShipping(bool *aRequestShipping) override; \
746 : NS_IMETHOD GetShippingType(nsAString & aShippingType) override;
747 :
748 : /* Use this macro when declaring the members of this interface when the
749 : class doesn't implement the interface. This is useful for forwarding. */
750 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTOPTIONS \
751 : nsresult GetRequestPayerName(bool *aRequestPayerName); \
752 : nsresult GetRequestPayerEmail(bool *aRequestPayerEmail); \
753 : nsresult GetRequestPayerPhone(bool *aRequestPayerPhone); \
754 : nsresult GetRequestShipping(bool *aRequestShipping); \
755 : nsresult GetShippingType(nsAString & aShippingType);
756 :
757 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
758 : #define NS_FORWARD_NSIPAYMENTOPTIONS(_to) \
759 : NS_IMETHOD GetRequestPayerName(bool *aRequestPayerName) override { return _to GetRequestPayerName(aRequestPayerName); } \
760 : NS_IMETHOD GetRequestPayerEmail(bool *aRequestPayerEmail) override { return _to GetRequestPayerEmail(aRequestPayerEmail); } \
761 : NS_IMETHOD GetRequestPayerPhone(bool *aRequestPayerPhone) override { return _to GetRequestPayerPhone(aRequestPayerPhone); } \
762 : NS_IMETHOD GetRequestShipping(bool *aRequestShipping) override { return _to GetRequestShipping(aRequestShipping); } \
763 : NS_IMETHOD GetShippingType(nsAString & aShippingType) override { return _to GetShippingType(aShippingType); }
764 :
765 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
766 : #define NS_FORWARD_SAFE_NSIPAYMENTOPTIONS(_to) \
767 : NS_IMETHOD GetRequestPayerName(bool *aRequestPayerName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestPayerName(aRequestPayerName); } \
768 : NS_IMETHOD GetRequestPayerEmail(bool *aRequestPayerEmail) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestPayerEmail(aRequestPayerEmail); } \
769 : NS_IMETHOD GetRequestPayerPhone(bool *aRequestPayerPhone) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestPayerPhone(aRequestPayerPhone); } \
770 : NS_IMETHOD GetRequestShipping(bool *aRequestShipping) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestShipping(aRequestShipping); } \
771 : NS_IMETHOD GetShippingType(nsAString & aShippingType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShippingType(aShippingType); }
772 :
773 : #if 0
774 : /* Use the code below as a template for the implementation class for this interface. */
775 :
776 : /* Header file */
777 : class nsPaymentOptions : public nsIPaymentOptions
778 : {
779 : public:
780 : NS_DECL_ISUPPORTS
781 : NS_DECL_NSIPAYMENTOPTIONS
782 :
783 : nsPaymentOptions();
784 :
785 : private:
786 : ~nsPaymentOptions();
787 :
788 : protected:
789 : /* additional members */
790 : };
791 :
792 : /* Implementation file */
793 : NS_IMPL_ISUPPORTS(nsPaymentOptions, nsIPaymentOptions)
794 :
795 : nsPaymentOptions::nsPaymentOptions()
796 : {
797 : /* member initializers and constructor code */
798 : }
799 :
800 : nsPaymentOptions::~nsPaymentOptions()
801 : {
802 : /* destructor code */
803 : }
804 :
805 : /* readonly attribute boolean requestPayerName; */
806 : NS_IMETHODIMP nsPaymentOptions::GetRequestPayerName(bool *aRequestPayerName)
807 : {
808 : return NS_ERROR_NOT_IMPLEMENTED;
809 : }
810 :
811 : /* readonly attribute boolean requestPayerEmail; */
812 : NS_IMETHODIMP nsPaymentOptions::GetRequestPayerEmail(bool *aRequestPayerEmail)
813 : {
814 : return NS_ERROR_NOT_IMPLEMENTED;
815 : }
816 :
817 : /* readonly attribute boolean requestPayerPhone; */
818 : NS_IMETHODIMP nsPaymentOptions::GetRequestPayerPhone(bool *aRequestPayerPhone)
819 : {
820 : return NS_ERROR_NOT_IMPLEMENTED;
821 : }
822 :
823 : /* readonly attribute boolean requestShipping; */
824 : NS_IMETHODIMP nsPaymentOptions::GetRequestShipping(bool *aRequestShipping)
825 : {
826 : return NS_ERROR_NOT_IMPLEMENTED;
827 : }
828 :
829 : /* readonly attribute AString shippingType; */
830 : NS_IMETHODIMP nsPaymentOptions::GetShippingType(nsAString & aShippingType)
831 : {
832 : return NS_ERROR_NOT_IMPLEMENTED;
833 : }
834 :
835 : /* End of implementation class template. */
836 : #endif
837 :
838 :
839 : /* starting interface: nsIPaymentRequest */
840 : #define NS_IPAYMENTREQUEST_IID_STR "2fa36783-d684-4487-b7a8-9def6ae3128f"
841 :
842 : #define NS_IPAYMENTREQUEST_IID \
843 : {0x2fa36783, 0xd684, 0x4487, \
844 : { 0xb7, 0xa8, 0x9d, 0xef, 0x6a, 0xe3, 0x12, 0x8f }}
845 :
846 0 : class NS_NO_VTABLE nsIPaymentRequest : public nsISupports {
847 : public:
848 :
849 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPAYMENTREQUEST_IID)
850 :
851 : /* readonly attribute uint64_t tabId; */
852 : NS_IMETHOD GetTabId(uint64_t *aTabId) = 0;
853 :
854 : /* readonly attribute AString requestId; */
855 : NS_IMETHOD GetRequestId(nsAString & aRequestId) = 0;
856 :
857 : /* readonly attribute nsIArray paymentMethods; */
858 : NS_IMETHOD GetPaymentMethods(nsIArray * *aPaymentMethods) = 0;
859 :
860 : /* readonly attribute nsIPaymentDetails paymentDetails; */
861 : NS_IMETHOD GetPaymentDetails(nsIPaymentDetails * *aPaymentDetails) = 0;
862 :
863 : /* readonly attribute nsIPaymentOptions paymentOptions; */
864 : NS_IMETHOD GetPaymentOptions(nsIPaymentOptions * *aPaymentOptions) = 0;
865 :
866 : /* void updatePaymentDetails (in nsIPaymentDetails aDetails); */
867 : NS_IMETHOD UpdatePaymentDetails(nsIPaymentDetails *aDetails) = 0;
868 :
869 : };
870 :
871 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPaymentRequest, NS_IPAYMENTREQUEST_IID)
872 :
873 : /* Use this macro when declaring classes that implement this interface. */
874 : #define NS_DECL_NSIPAYMENTREQUEST \
875 : NS_IMETHOD GetTabId(uint64_t *aTabId) override; \
876 : NS_IMETHOD GetRequestId(nsAString & aRequestId) override; \
877 : NS_IMETHOD GetPaymentMethods(nsIArray * *aPaymentMethods) override; \
878 : NS_IMETHOD GetPaymentDetails(nsIPaymentDetails * *aPaymentDetails) override; \
879 : NS_IMETHOD GetPaymentOptions(nsIPaymentOptions * *aPaymentOptions) override; \
880 : NS_IMETHOD UpdatePaymentDetails(nsIPaymentDetails *aDetails) override;
881 :
882 : /* Use this macro when declaring the members of this interface when the
883 : class doesn't implement the interface. This is useful for forwarding. */
884 : #define NS_DECL_NON_VIRTUAL_NSIPAYMENTREQUEST \
885 : nsresult GetTabId(uint64_t *aTabId); \
886 : nsresult GetRequestId(nsAString & aRequestId); \
887 : nsresult GetPaymentMethods(nsIArray * *aPaymentMethods); \
888 : nsresult GetPaymentDetails(nsIPaymentDetails * *aPaymentDetails); \
889 : nsresult GetPaymentOptions(nsIPaymentOptions * *aPaymentOptions); \
890 : nsresult UpdatePaymentDetails(nsIPaymentDetails *aDetails);
891 :
892 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
893 : #define NS_FORWARD_NSIPAYMENTREQUEST(_to) \
894 : NS_IMETHOD GetTabId(uint64_t *aTabId) override { return _to GetTabId(aTabId); } \
895 : NS_IMETHOD GetRequestId(nsAString & aRequestId) override { return _to GetRequestId(aRequestId); } \
896 : NS_IMETHOD GetPaymentMethods(nsIArray * *aPaymentMethods) override { return _to GetPaymentMethods(aPaymentMethods); } \
897 : NS_IMETHOD GetPaymentDetails(nsIPaymentDetails * *aPaymentDetails) override { return _to GetPaymentDetails(aPaymentDetails); } \
898 : NS_IMETHOD GetPaymentOptions(nsIPaymentOptions * *aPaymentOptions) override { return _to GetPaymentOptions(aPaymentOptions); } \
899 : NS_IMETHOD UpdatePaymentDetails(nsIPaymentDetails *aDetails) override { return _to UpdatePaymentDetails(aDetails); }
900 :
901 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
902 : #define NS_FORWARD_SAFE_NSIPAYMENTREQUEST(_to) \
903 : NS_IMETHOD GetTabId(uint64_t *aTabId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabId(aTabId); } \
904 : NS_IMETHOD GetRequestId(nsAString & aRequestId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestId(aRequestId); } \
905 : NS_IMETHOD GetPaymentMethods(nsIArray * *aPaymentMethods) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaymentMethods(aPaymentMethods); } \
906 : NS_IMETHOD GetPaymentDetails(nsIPaymentDetails * *aPaymentDetails) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaymentDetails(aPaymentDetails); } \
907 : NS_IMETHOD GetPaymentOptions(nsIPaymentOptions * *aPaymentOptions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaymentOptions(aPaymentOptions); } \
908 : NS_IMETHOD UpdatePaymentDetails(nsIPaymentDetails *aDetails) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdatePaymentDetails(aDetails); }
909 :
910 : #if 0
911 : /* Use the code below as a template for the implementation class for this interface. */
912 :
913 : /* Header file */
914 : class nsPaymentRequest : public nsIPaymentRequest
915 : {
916 : public:
917 : NS_DECL_ISUPPORTS
918 : NS_DECL_NSIPAYMENTREQUEST
919 :
920 : nsPaymentRequest();
921 :
922 : private:
923 : ~nsPaymentRequest();
924 :
925 : protected:
926 : /* additional members */
927 : };
928 :
929 : /* Implementation file */
930 : NS_IMPL_ISUPPORTS(nsPaymentRequest, nsIPaymentRequest)
931 :
932 : nsPaymentRequest::nsPaymentRequest()
933 : {
934 : /* member initializers and constructor code */
935 : }
936 :
937 : nsPaymentRequest::~nsPaymentRequest()
938 : {
939 : /* destructor code */
940 : }
941 :
942 : /* readonly attribute uint64_t tabId; */
943 : NS_IMETHODIMP nsPaymentRequest::GetTabId(uint64_t *aTabId)
944 : {
945 : return NS_ERROR_NOT_IMPLEMENTED;
946 : }
947 :
948 : /* readonly attribute AString requestId; */
949 : NS_IMETHODIMP nsPaymentRequest::GetRequestId(nsAString & aRequestId)
950 : {
951 : return NS_ERROR_NOT_IMPLEMENTED;
952 : }
953 :
954 : /* readonly attribute nsIArray paymentMethods; */
955 : NS_IMETHODIMP nsPaymentRequest::GetPaymentMethods(nsIArray * *aPaymentMethods)
956 : {
957 : return NS_ERROR_NOT_IMPLEMENTED;
958 : }
959 :
960 : /* readonly attribute nsIPaymentDetails paymentDetails; */
961 : NS_IMETHODIMP nsPaymentRequest::GetPaymentDetails(nsIPaymentDetails * *aPaymentDetails)
962 : {
963 : return NS_ERROR_NOT_IMPLEMENTED;
964 : }
965 :
966 : /* readonly attribute nsIPaymentOptions paymentOptions; */
967 : NS_IMETHODIMP nsPaymentRequest::GetPaymentOptions(nsIPaymentOptions * *aPaymentOptions)
968 : {
969 : return NS_ERROR_NOT_IMPLEMENTED;
970 : }
971 :
972 : /* void updatePaymentDetails (in nsIPaymentDetails aDetails); */
973 : NS_IMETHODIMP nsPaymentRequest::UpdatePaymentDetails(nsIPaymentDetails *aDetails)
974 : {
975 : return NS_ERROR_NOT_IMPLEMENTED;
976 : }
977 :
978 : /* End of implementation class template. */
979 : #endif
980 :
981 :
982 : #endif /* __gen_nsIPaymentRequest_h__ */
|