public static SetBillingAgreementDetailsResponse SetBillingAgreementDetails(OffAmazonPaymentsServicePropertyCollection propertiesCollection, IOffAmazonPaymentsService service, string billingAgreementId, string sellerBillingAgreementId, string customNote, string storeName, string sellerNote) { SetBillingAgreementDetailsRequest request = new SetBillingAgreementDetailsRequest(); request.AmazonBillingAgreementId = billingAgreementId; request.SellerId = propertiesCollection.MerchantID; BillingAgreementAttributes attr = new BillingAgreementAttributes(); attr.SellerNote = sellerNote; SellerBillingAgreementAttributes sellerAttr = new SellerBillingAgreementAttributes(); sellerAttr.SellerBillingAgreementId = sellerBillingAgreementId; sellerAttr.CustomInformation = customNote; sellerAttr.StoreName = storeName; attr.SellerBillingAgreementAttributes = sellerAttr; request.BillingAgreementAttributes = attr; return(InvokeSetBillingAgreementDetails(service, request)); }
public static SetBillingAgreementDetailsResponse SetBillingAgreementDetails(OffAmazonPaymentsServicePropertyCollection propertiesCollection, IOffAmazonPaymentsService service, string billingAgreementId, string sellerBillingAgreementId, string customNote, string storeName, string sellerNote) { SetBillingAgreementDetailsRequest request = new SetBillingAgreementDetailsRequest(); request.AmazonBillingAgreementId = billingAgreementId; request.SellerId = propertiesCollection.MerchantID; BillingAgreementAttributes attr = new BillingAgreementAttributes(); attr.SellerNote = sellerNote; SellerBillingAgreementAttributes sellerAttr = new SellerBillingAgreementAttributes(); sellerAttr.SellerBillingAgreementId = sellerBillingAgreementId; sellerAttr.CustomInformation = customNote; sellerAttr.StoreName = storeName; attr.SellerBillingAgreementAttributes = sellerAttr; request.BillingAgreementAttributes = attr; return InvokeSetBillingAgreementDetails(service, request); }